﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="DatVeKetThuc.aspx.cs" Inherits="DatVeKetThuc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">

        function showRoundTrip() {
            var a = (document.getElementById("MainContent_Label13").value);

            if (a == "Khứ hồi") {
                document.getElementById('table2').removeAttribute("style");
            }
            else {
                document.getElementById('table2').setAttribute("style", "display:none");
            }

            return false;
        }
        window.onload = showRoundTrip;
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <section id="content">
		<article>
            <div class="pad_1" id="divDatVeB" style="background: #F4F4F4;">
			<p class="titleh2">Đặt vé máy bay:</p>
            <form id="form2" class="inactive">
                <table class="table2">
                    <tr>
                        <td style="width:100%" colspan="2"><h3>Bước 4/4: thanh toán và kết thúc</h3></td>
                    </tr>
                    <tr>
                        <td colspan="2"><asp:Label ID="Label14" runat="server" Text="Label" 
                                class="ThongBaoDatVe" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan="2"><h3>Thông tin Đặt vé:</h3></td>
                    </tr>
                    <tr>
                        <td style="width: 20%;">Họ tên khách hàng:</td>
                        <td><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Email:</td>
                        <td><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Giấy tờ tùy thân:</td>
                        <td><asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Số:</td>
                        <td><asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Loại chuyến bay: </td>
                        <td><asp:Label ID="Label13" runat="server" Text="Một chiều"></asp:Label></td>
                    </tr>
                    <tr>
                        <td colspan ="2">Chi tiết Chuyến bay:</td>
                    </tr>
                    <tr>
                        <td colspan ="2">

                        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" class="gridview" CellPadding="4" ForeColor="#333333" CellSpacing="5" 
                            GridLines="None" AutoGenerateColumns="False" >
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="maCB" HeaderText="Mã CBay">
                                <ControlStyle Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="tenCB" HeaderText="Tên CBay">
                                <ControlStyle Width="150px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngaygiodi" HeaderText="Ngày giờ đi">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngayGioden" HeaderText="Ngày giờ đến">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="loaive" HeaderText="Loại vé">
                                <ControlStyle Width="90px"/>
                                </asp:BoundField>
                                <asp:BoundField DataField="giave" HeaderText="Giá vé">
                                <ControlStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="donvitien" HeaderText="Đơn vị tiền">
                                <ControlStyle Width="95px" />
                                </asp:BoundField>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" Height="28px" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" BorderColor="#0099FF" BorderStyle="Solid" 
                                BorderWidth="1px" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"/>
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                        
                        </td>
                    </tr>
                </table>
                <table id="table2" class="table2">
                    <tr>
                        <td colspan ="2">Chi tiết Chuyến bay về:</td>
                    </tr>
                    <tr>
                        <td colspan ="2">

                        <asp:GridView ID="GridView2" runat="server" AllowSorting="True" class="gridview" CellPadding="4" ForeColor="#333333" CellSpacing="5" 
                            GridLines="None" AutoGenerateColumns="False" >
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="maCB" HeaderText="Mã CBay">
                                <ControlStyle Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="tenCB" HeaderText="Tên CBay">
                                <ControlStyle Width="150px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngaygiodi" HeaderText="Ngày giờ đi">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngayGioden" HeaderText="Ngày giờ đến">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="loaive" HeaderText="Loại vé">
                                <ControlStyle Width="90px"/>
                                </asp:BoundField>
                                <asp:BoundField DataField="giave" HeaderText="Giá vé">
                                <ControlStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="donvitien" HeaderText="Đơn vị tiền">
                                <ControlStyle Width="95px" />
                                </asp:BoundField>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" Height="28px" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" BorderColor="#0099FF" BorderStyle="Solid" 
                                BorderWidth="1px" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"/>
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                        
                        </td>
                    </tr>
                </table>
                <table class="table2">
                    <tr>
                        <td colspan ="2">Chi tiết vé:</td>
                    </tr>
                    <tr>
                        <td>Loại vé:</td>
                        <td><asp:Label ID="Label5" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Số lượng vé người lớn:</td>
                        <td><asp:Label ID="Label6" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Chi phí:</td>
                        <td><asp:Label ID="Label7" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Số lượng vé trẻ em 2-12 tuổi:</td>
                        <td><asp:Label ID="Label8" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Chi phí:</td>
                        <td><asp:Label ID="Label9" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Số lượng vé trẻ em < 2 tuổi:</td>
                        <td><asp:Label ID="Label10" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Chi phí:</td>
                        <td><asp:Label ID="Label11" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Tổng chi phí:</td>
                        <td><asp:Label ID="Label12" runat="server" Text="Label"></asp:Label></td>
                    </tr>
                    <tr>
                    <td>
                        <asp:Button ID="Button3" runat="server" Text="Kết thúc đặt vé" class="button2" 
                            onclick="Button3_Click" ValidationGroup="Validate1" OnClientClick="return confirm('Hệ thống sẽ kiểm tra xem có đặt vé thành công ở thời điểm hiện tại hay ko');"
                            /></td>
                    <td>
                        <asp:Button ID="Button4" runat="server" Text="Trở lại" class="button1" onclick="Button4_Click" ValidationGroup="Validate2"
                             /></td>
                </tr>
                </table>
            </form>
            </div>
         </article>
    </section>
</asp:Content>
